package com.hyh.admin.domain.guide;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.hyh.ad.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


/*
 * 智能引导类
 */
@Data
@ApiModel(value = "IntelligenceGuide对象",description = "智能引导类")
public class IntelligenceGuide{

    /*
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long id;

    /*
     * 选项描述
     */
    @ApiModelProperty(value = "选项描述")

    private String content;

    /*
     * 父类id
     */
    @ApiModelProperty(value = "父类id")
    @JsonSerialize(using = ToStringSerializer.class) // 防止前端精度丢失

    private Long parentId;

    /*
     * 选项类型
     */
    @ApiModelProperty(value = "选项类型 q:问题 a:答案")
    private String optionType;


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
}
